import Vue from "vue";
import VueI18n from "vue-i18n";

Vue.use(VueI18n);

import customZhCn from "./languages/zh-CN.json";
import customEnUs from "./languages/en-US.json";

// 注册i18n实例并引入语言文件
const i18n = new VueI18n({
  locale: "zh-CN",
  messages: {
    "zh-CN": customZhCn,
    "en-US": customEnUs,
  },
});

export default i18n;
